const mongoose = require('mongoose')

const userSchema = new mongoose.Schema({
  username: {
    type: String,
    required: true,
    maxlength: 128
  },
  password: {
    type: String,
    required: true,
    maxlength: 512
  },
  nickname: {
    type: String,
    
    maxlength: 128,
   
  }
}, {timestamps: true})

mongoose.model('User', userSchema, 'user')